package cn.kgc.exception;

import cn.kgc.utils.IErrorCode;

/**
 * 商品模块的异常信息类
 */
public enum ItemErrorCode implements IErrorCode {
    ITEM_No_EXIST("2001","商品不存在"),
    ITEM_NO_Scheduler("2002","商品不存在排期"),
    Item_No_SeatPrice("2003","商品排期没有座位价格" );


    private String errorCode;
    private String errorMsg;


    ItemErrorCode(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMessage() {
        return errorMsg;
    }
}
